using System.ComponentModel.DataAnnotations;

namespace RAG.Domain.Entities.App;

/// <summary>
/// 文档块实体
/// </summary>
public class DocumentChunk : EntityBase
{
    public Guid Id { get; set; } //文档块id
    public Guid DocumentId { get; set; } //文档id
    public int ChunkIndex { get; set; } //块索引
    
    public string DocumentChunkContent { get; set; } = null!; //文档块内容
    public int TokenCount { get; set; } //token数量
    
    // 导航属性
    public Document Document { get; set; } = null!;
    public Vector? Vector { get; set; } //对应的向量
} 